<template>
  <div class="content">
          <div class="categoryWrap">
             <span>日期 : </span>
             <el-date-picker 
                v-model="value1"
                type="year"
                placeholder="选择年份"
               >
             </el-date-picker>
          </div>
       <div class="table">
            <el-table :header-cell-style="{background:'#f5f6f8'}"
            ref="multipleTable"
            :data="tableData"
            tooltip-effect="dark"
            style="width: 100%"
            border
            @selection-change="handleSelectionChange">
            <el-table-column
            prop="number"
            label="序号"
            >
            </el-table-column>
            <el-table-column
            prop="date"
            label="单位"
            >
            </el-table-column>
            <el-table-column
            prop="date"
            label="期初余额"
            >
            </el-table-column>
            <el-table-column
            prop="date"
            label="本期借方"
            >
            </el-table-column>
            <el-table-column
            prop="date"
            label="本期贷方"
            >
            </el-table-column>
            <el-table-column
            prop="date"
            label="本期余额（借方）"
            >
            </el-table-column>
             <el-table-column
            prop="date"
            label="期末余额（借方）"
            >
            </el-table-column>
             <el-table-column
            prop="date"
            label="备注"
            >
            </el-table-column>
        </el-table>
       </div>
  </div>
</template>

<script>
  export default {
    data () {
       return{
        tableData: [{
          number:1,
          date: '2016-05-03',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
          zip: 200333
        }, {
          number:2,
          date: '2016-05-02',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
          zip: 200333
        }, {
           number:3,
          date: '2016-05-04',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
          zip: 200333
        }, {
          number:4,
          date: '2016-05-01',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
          zip: 200333
        }, 
        ]
       }
    },
    methods: {
       
    },

  }

</script>
<style lang='scss' scoped>
.content{
   min-height: calc(100vh - 130px);
   background: #fff;
   padding: 30px;
   border-radius: 10px;
   .categoryWrap{
       span{
         margin-right: 30px;
       }
    }
   .table{
       margin: 30px 0 0 0;
    }
       
}
</style>